# 面向对象编程
class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score

    def run(self):
        print("%s is running..." %(self.name))

    def info(self):
        print("%s的综合成绩是:%d" % (self.name, self.score))

    def scoreJudge(self):
        if self.score >= 80:
            print("%s 的成绩很优秀" % (self.name))
        elif self.score >= 60:
            print("%s 的成绩一般" % (self.name))
        else:
            print("%s 经常挂科" % (self.name))


stu01 = Student("王杨帅", 40)
stu01.info()
stu01.run()
stu01.scoreJudge()
print("partin line".center(30, "="))

stu02 = Student("wys", 80)
stu01.info()
stu02.run()
stu02.scoreJudge()

